# REPLICATION ARCHIVE

This replication archive contains all scripts and data necessary to replicate the analysis in "The Non-Consequences of COVID-19 on Left-Right Ideological Beliefs".

## MANUSCRIPT AND SUPPLEMENTAL INFORMATION

The manuscript and supplemental materials are generated from LaTeX documents.  

- CovidIdeology.tex - manuscript LaTeX file
- CovidIdeology_suppl.tex - supplemental information LaTeX file
- bibliography.bib - bibliography file
- psrm_styles.tex - LaTeX style file

## ANALYSIS

In order to re-run the analysis described in the paper, you will need to execute the file 00_run.sh. 

00_run.sh creates some necessary directory structure and then executes the following files:

- 01_prep.R- 02_analysis.R
- 03_outputs_w21_added.R
- 04_outputs.R
- 05_survey_experiment.R
- 06_bsas_20_analysis.R

00_run.sh then compiles CovidIdeology.tex and CovidIdeology_suppl.tex which generate the manuscript and online appendix.

## DATA

- source_data/BES2019_W21_Panel_v21.0.sav

	- A panel dataset including waves 1-21 of the BES Internet Panel.

- source_data/P_UCL_PACERSurvey_April2020_CLIENT.sav

	- The data file received from the survey vendor for the April 2020 wave of PACER

- source_data/P_UCL_PACERSurvey_September2020_CLIENT.sav

	- The data file received from the survey vendor for the September 2020 wave of PACER

- source_data/PACER+Ideology+Experiment_October+21%2C+2021_03.23.csv

	- The data file exported from Qualtrics for the survey experiment described in the paper

- source_data/bsa8320.dta

	- The BSA data up to 2020

## SOFTWARE

- R version 4.3.2 (2023-10-31)
- RStudio version 2023.09.1+494 (2023.09.1+494)
- tidyverse 2.0.0
- data.table 1.14.8
- foreign 0.8-85
- ggplot2 3.4.4 
- plm 2.6-2
- gridExtra 2.3
- texreg 1.39.3
- panelView 1.1.17
- tidylog 1.0.2
- survey_4.2-1
- mvtnorm 1.2-4
- margins 0.3.26
- psych 2.3.9
- stargazer 5.2.3
- survey 4.2-1
- broom 1.0.5
- readr 2.1.4

## Operating system

The scripts in this archive were executed using macOS Monterey v 12.2.1



